﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;



namespace VirtualTournaments.Services.Tournaments
{
    public class Journey : IEnumerable<Match>
    {
        private List<Match> _matches;

        public Journey()
        {
            _matches = new List<Match>();
        }

        public void addMatch(Match match)
        {
            _matches.Add(match);
        }

        public List<Match> Matches
        {
            get { return _matches; }
            set { _matches = value; }
        }

        public IEnumerator<Match> GetEnumerator()
        {
            return _matches.GetEnumerator();
        }

        IEnumerator IEnumerable.GetEnumerator()
        {
            return _matches.GetEnumerator();
        }
    
    
    }
    
    
        

        

}
